import router from "@/router";

export const gotoSearch = (params) => {

    console.log("params", params)
    router.push({
        // path: `/search/1234`,
        name: 'search',
        params: {
            keyword: params.categoryName
        }
    }).then().catch((err) => {
        console.error('something went wrong when user are searching ', err)
        router.push({
            path: '/'
        }).then()
    })
}
